package com.mango.amazon.model.feed;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * Feed Message
 */
@Data
public class Messages {
    /**
     * Message Identifier
     * Identifier for the message that is unique within this feed submission. Response messages are correlated to this identifier.
     */

    private int messageId;
    /**
     * SKU (Stock Keeping Unit)
     * Selling Partner SKU (stock keeping unit) identifier for the listing. SKU uniquely identifies a listing for a Selling Partner.
     */
    private String sku;
    /**
     * Type of operation to perform for the listings data submission in this message. \"UPDATE\" indicates the full set of item attributes are provided and any existing attributes data will be replaced with the provided attributes. \"PARTIAL_UPDATE\" indicates only the provided item attributes will be updated with the provided attribute data. \"PATCH\" indicates the provided JSON Patch operations will be used to update the applicable attributes. \"DELETE\" indicates the listings item will be deleted.
     * @see com.mango.amazon.enums.OperationType
     */
    private String operationType;
    /**
     * 产品类型
     * Amazon product type of the listings data submission in this message.
     */
    private String productType;
    /**
     * Name of the requirements type for the listings data submission in this message.  \"LISTING\" indicates requirements inclusive of product facts and sales terms.  \"LISTING_PRODUCT_ONLY\" indicates requirements inclusive of product facts only.  \"LISTING_OFFER_ONLY\" indicates requirements inclusive of sales terms only.
     */
    private String requirements;
    /**
     * 属性集合
     * Attributes data for the listings data submission.
     */
    private Map attributes;
    /**
     * 补丁集合
     * Listings Item JSON Patch Operations
     * Attributes data in the form of JSON Patch operations to update or delete.
     */
    private List<String> patches;
}
